package com.nervenets.web.controller.handler.user.user;

import com.nervenets.web.annotation.NeedValidation;
import com.nervenets.web.controller.handler.common.TokenParams;
import com.nervenets.web.validation.Type;
import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
public class UserAddressEditParams extends TokenParams {
    @NeedValidation(type = Type.EMPTY, description = "地址ID,不填为新建")
    private long addressId;
    @NeedValidation(type = Type.NOTEMPTY, description = "姓名")
    private String name;
    @NeedValidation(type = Type.NOTEMPTY, description = "电话")
    private String mobile;
    @NeedValidation(type = Type.POSITIVENUMBER, description = "区ID")
    private int areaId;
    @NeedValidation(type = Type.NOTEMPTY, description = "具体位置")
    private String detail;
    @NeedValidation(type = Type.NOTEMPTY, description = "是否为默认")
    private boolean def = false;
}
